package com.java.entity;


import java.util.List;

/**
 * 航线类  航线编号，出发地，目的地，航距
 */
public class AirLine {
    //    create table f_airline(
    private String airlineNo;//            airlineNo varchar(20) primary key not null,
    private String origin;                 //    origin varchar(20) not null,
    private String destination;                //    destination varchar(20) not null,
    private float distance;                       //    distance float not null);

    private List<FlightInformation> flightInformations;

    @Override
    public String toString() {
        return "AirLine{" +
                "airlineNo='" + airlineNo + '\'' +
                ", origin='" + origin + '\'' +
                ", destination='" + destination + '\'' +
                ", distance=" + distance +
                ", flightInformations=" + flightInformations +
                '}';
    }

    public AirLine(String airlineNo, String origin, String destination, float distance, String price) {
        this.airlineNo = airlineNo;
        this.origin = origin;
        this.destination = destination;
        this.distance = distance;

    }

    public AirLine() {
    }

    public String getAirlineNo() {
        return airlineNo;
    }

    public void setAirlineNo(String airlineNo) {
        this.airlineNo = airlineNo;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public float getDistance() {
        return distance;
    }

    public void setDistance(float distance) {
        this.distance = distance;
    }




}